<?php
/* @var $this ProductController */
/* @var $data Product */
?>

	<tr>
		<td class="pro tl">
			<?php echo CHtml::checkBox('id[]','',array('class'=>'chk f_l chkitem','onclick'=>'CheckList("ids[]","id[]")','value'=>$data->zp_id))?>
			<div class="c_img c_img50">
				<?php echo CHtml::link(Tool::thumb($data->zp_pic,50,50,$data->zp_name),array('/home/product/detail','id'=>$data->zp_id),array('target'=>'_blank'))?>
			</div>
			<p class="title_pro line_18">
				<?php echo CHtml::link(mb_substr($data->zp_name,0,20,'utf8'),array('/home/product/detail','id'=>$data->zp_id),array('class'=>'c_06c','target'=>'_blank'))?>
			</p>
		</td>
		<td width="17%">
			<?php echo CHtml::link(mb_substr($data->company->zc_name,0,20,'utf8'),$data->company->domain,array('class'=>'c_06c'))?>
		</td>
		<td width="12%"><strong class="fs_14 ff_yh c_f60">&yen;<?php echo $data->zp_price?></strong></td>
		<td width="8%"><?php echo $data->zp_inventory?></td>
		<td width="12%"><?php echo date('Y-m-d H:s',$data->inputtime)?></td>
		<td width="16%">
			<?php //审核通过，销售中?>
			<?php if($data->zp_state==2&&$data->zp_status==2) echo CHtml::link(Yii::t('cmp','downshelf'),'javascript:',array('class'=>'mem_btn mem_btn13','onclick'=>'return art_del_confirm("/manage/product/downShelf/id/'.$data->zp_id.'","你确认要下架该产品吗！")'))?>
			<?php //待审核?>
			<?php if($data->zp_status==1) echo CHtml::link(Yii::t('adm','Check Status'),array($this->pre_module_url.'/productWaitCheck/CheckStatus','id'=>$data->zp_id),array('class'=>'mem_btn mem_btn13'))?>
			<?php //审核通过，未上架?>
			<?php if($data->zp_state==1&&$data->zp_status==2) echo CHtml::link('已下架','javascript:',array('class'=>'c_06c mr10'))?>
			<?php //审核不通过?>
			<?php if($data->zp_status==3) echo CHtml::link('审核未通过','javascript:',array('class'=>'c_06c'))?>
			<?php //逻辑删除?>
			<?php if($data->zp_state==1) echo CHtml::link(Yii::t('cmp','Delete'),'javascript:',array('class'=>'c_06c','onclick'=>'return art_del_confirm("'.$this->pre_module_url.'/product/delete/id/'.$data->zp_id.'","你确定要删除这条信息吗？")'))?> 
			<?php echo CHtml::link(Yii::t('glo','Update'),array($this->pre_module_url.'/productCreate/update','id'=>$data->zp_id),array('class'=>'mem_btn mem_btn13'))?>
		</td>
	</tr>

